package net.neptech.service.impl;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.neptech.mapper.InstanceExecutionMapper;
import net.neptech.model.workflow.InstanceExecution;
import net.neptech.service.InstanceExecutionService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InstanceExecutionServiceImpl extends ServiceImpl<InstanceExecutionMapper,InstanceExecution> implements InstanceExecutionService {
    /**
     * 清理流程数据
     */
    @Override
    public void clearProcess(List<String> flowIdList) {
        this.lambdaUpdate().in(InstanceExecution::getFlowId,flowIdList).remove();
    }
}
